<?php 
namespace Admin\Model;
use Think\Model;

/**
* Info 模型
*/
class InfoModel extends Model{
	
	protected $_validate = [
 		['account','require','账户必须填写！'],
 		['account','','账户已经存在！',2,'unique',3],
 		['name','require','姓名必须填写！'],
 		['password','require','密码必须填写！'],
 		['data','require','数据必须填写！'],
 		['port','require','端口必须填写，没有填写短线，例如“----”'],
 		['charger_id','require','维护员必须填写'],
 	];

 	protected $_auto = [
 		['uuid','getUUID',1,'callback'],
 		['posttime','time',1,'function'],
 	];

 	protected function getUUID(){
		return makeUuid();
	}
	
}